package com.xingkeduo.remote.feign;

import com.xingkeduo.dto.OrderDetailResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "business-order")
public interface OrderFeignService {
    //查询订单详情根据id
    @RequestMapping("/order/query")
    ResponseUtils<OrderDetailResponseDto> queryOrder(@RequestParam(value="id") int  id, @RequestParam(value="detail") boolean detail);


    //查询订单详情根据orderNo
    @RequestMapping("/order/query/no")
    ResponseUtils<OrderDetailResponseDto> queryOrderNo(@RequestParam(value="id") String  id, @RequestParam(value="detail") boolean detail);

    //查询订单详情根据id
    @PutMapping("/api/order/comment")
    ResponseUtils comment(@RequestParam(value="orderNo") String  orderNo);


    //获取订单的售后状态
    @RequestMapping("/api/order/customer/cutomer/list")
    ResponseUtils<List<Object>> cutomerList(@RequestParam(value="orderNos") String[] orderNos);



}
